package com.glp.work.flow.dto.request;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author liwenhong
 * @title
 * @date 2018/11/1.
 */
@Data
@ApiModel(value = "ApproveRequstDTO", description = "审批请求体")
public class ApproveRequstDTO extends BaseRequest {

  @ApiModelProperty(value = "审批流程实例ID")
  private String procInstId;

  @ApiModelProperty(value = "当前用户ID",hidden = true)
  private String userId;

  @ApiModelProperty(value = "审批处理意见")
  private String opinion;

  @ApiModelProperty(value = "审批状态,1通过,2驳回,3拒绝")
  private Integer approveStatus;

  @ApiModelProperty(value = "驳回表单项列表")
  private String rejectFieldList;

  @ApiModelProperty(value = "批量审批资金计划id列表,批量审批时不能为空")
  private List<Long> ids;

  @ApiModelProperty(hidden = true)
  private Long updateTime;
  @ApiModelProperty(hidden = true)
  private Integer status;
  @ApiModelProperty(hidden = true)
  private String taskDefKey;
  @ApiModelProperty(hidden = true)
  private Integer business;
  @ApiModelProperty(hidden = true)
  private String bizType;
  @ApiModelProperty(hidden = true)
  private String procDefKey;
  @ApiModelProperty(hidden = true)
  private String taskId;
  @ApiModelProperty(hidden = true)
  private String assignee;
  @ApiModelProperty(hidden = true)
  private String wfType;
  @ApiModelProperty(hidden = true)
  private String cashPlanChangeType;
  @ApiModelProperty(hidden = true)
  private Map<String, Object> var;
  @ApiModelProperty(hidden = true)
  private String postil;
  @ApiModelProperty(hidden = true)
  private Integer loanStep;


  public void copy(ApproveRequstDTO source){
    this.userId=source.getUserId();
    this.approveStatus=source.getApproveStatus();
    this.opinion=source.getOpinion();
    this.wfType=source.getWfType();
  }

}
